<?php

/**
 * @package examples
 */

header('Content-type: text/plain; charset=utf-8');
include '../../library/Zfbook/Convert/Interface.php';
include '../../library/Zfbook/Convert/Exception.php';
include '../../library/Zfbook/Convert.php';
include '../../library/Zfbook/Convert/Csv.php';
include '../../library/Zfbook/Convert/Csv/Exception.php';


$dataArray = array();
$dataArray[] = array('Salle', 'Debut', 'Fin', 'Qui');
$dataArray[] = array('REU02', 
                     '15/06/2008 14:30', 
                     '15/06/2008 16:30', 
                     'Service, "informatique"');
$dataArray[] = array('REU04', 
                     '15/06/2008 15:30', 
                     '15/06/2008 17:00', 
                     'Direction');

$converter = Zfbook_Convert::getConverter(Zfbook_Convert::CSV);
echo $converter->convertFromArray($dataArray);
